Configure LDAP Client
2014/12/31 |
Configure LDAP Client in order to share users' accounts in your local networks.
|
|
[1] | Install OpenLDAP Client. |
[root@www ~]#
yum -y install openldap-clients nss-pam-ldapd # ldapserver=(LDAP server's hostname or IP address) # ldapbasedn="dc=(your own Suffix)" [root@www ~]# authconfig --enableldap \ --enableldapauth \ --ldapserver=dlp.srv.world \ --ldapbasedn="dc=srv,dc=world" \ --enablemkhomedir \ --update getsebool: SELinux is disabled
[root@www ~]#
vi /etc/sssd/sssd.conf # add follows in the [domain/default] section
ldap_tls_reqcert = allow
systemctl restart sssd
[root@www ~]#
logout
Fedora release 21 (Twenty One)
Kernel 3.17.6-300.fc21.x86_64 on an x86_64
www login:
[redhat@www ~]$ redhat # LDAP user Password: # LDAP password Creating directory '/home/redhat'. [redhat@www ~]$ # just logined # try to change the LDAP password Changing password for user redhat. Enter login(LDAP) password: # current password New password: # new password Retype new password: LDAP password information changed for redhat passwd: all authentication tokens updated successfully. |